﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LongRunning.aspx.cs" Inherits="AsyncPage.LongRunning"  Async="true"  AsyncTimeout="90"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

      <script type="text/javascript" src="<%= ResolveClientUrl("~/Scripts/jquery-1.5.1.min.js") %>"></script>
      <script type="text/javascript" src="<%= ResolveClientUrl("~/Scripts/jquery.blockUI.js") %>"></script>


       <script type="text/javascript">

           function launch() {



               $.blockUI({ message: '<h1><img src="./image/load.gif" />&nbsp;&nbsp; Long running task ... </h1>' });

           }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Text="Press me!" 
            onclick="Button1_Click"  OnClientClick="javascript:launch();"/> 
        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>
